How i can write this in java? /*i don't know how i scan n*/ | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

How i can write this in java? /*i don't know how i scan n*/

#include<stdio.h>; int main(){ int n,i; printf("give a number"); scanf("℅d",&n); for(i=0,i<=n,i++){ printf("%d",i); } return 0; }

13th Nov 2020, 7:53 PM
Abdel Nour Belhadj
Abdel Nour Belhadj - avatar
1 Antwort
+ 1
You are already started learning java. So all solution you can find in 1st chapter's input taking, output, main method.. Revise those and try it yourself Fisrt... Post your try..
13th Nov 2020, 8:05 PM
Jayakrishna 🇮🇳