Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Assignment-02/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Assignment 2
Initialize and assign a value to an integer, float, and char variable. Then print each one with a sentence on a new line describing variable data type.
Initialize and assign a value to an integer, float, and char array variable. Then print each one with a sentence on a new line describing variable data type.

## Example Output
```terminal_session
Expand Down
6 changes: 2 additions & 4 deletions Assignment-02/assignment2.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ int main(void)
float floatvar = 3.14;
char string[] = "Hello, World!";

printf("%d is an integer!\n", integer);
printf("%f is a float!\n", floatvar);
printf("%s is a char!\n", string);

printf("%d is an intgeger!\n%.2f is a float!\n%s is a char array!\n",integer,floatvar,string);
return 0;
}
2 changes: 1 addition & 1 deletion Assignment-09/assignment9.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
int main(int argc, char *argv[])
{

if(argc < 3 || argc > 3)
if(argc != 3)
{
printf("Usage: ./assignment9 Firstname Lastname");
}
Expand Down