write a program to print 20 horizontal astricks
Answers
Answered by
10
Explanation:
2. write a program to print 20 horizontal asterisks (*)#include <stdio.h>#include <stdlib.h>/*int main(){int i = 1while ( i <=100){printf("*");i +=}}*/int main (){int negativeCount= 0;int positiveCount= 0;int zeroCount = 0;int userInput;printf("enter an integer: ");scanf("%d", & userInput);// read numbers until a -1 is enteredwhile( userInput != -1 ) {
Similar questions